﻿package ua.mihaylenko.cardsplugin.tabBar 
{
	import flash.events.Event;
	public class TabEvent extends Event
	{
		public static const TABSELECTED:String = "tabselected";
		public static const TABCHANGE:String = "tabchange";
		private var _index:uint;
		private var _label:String;
		public function TabEvent(type:String = null, bubbles:Boolean = false, cancelable:Boolean = false, index:int = -1, label:String = "") 
		{
			super(type, bubbles, cancelable);
			_index = index;
			_label = label;
		}
		
		public function set index(value:uint):void		
		{
			_index = value;
		}
		
		public function get index():uint
		{
			return _index;
		}
		
		public function set label(value:String):void
		{
			_label = value;
		}
		
		public function get label():String
		{
			return _label;
		}
		
		override public function clone():Event
		{
			return new TabEvent(type, bubbles, cancelable, index, _label);
		}
	}	
}